<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<title>Dart : Libraries : box2d : Vector3</title>
</head>

<body>

<header></header>

<h1 id="title">class <a name='Vector3::Vector3'>Vector3</a></h1>

<section id="inheritance">

<section class="supertype">
<h2>Supertype:</h2>
<ul><li>Object</li></ul>
</section>

</section>

<section id="summary">
 A three dimensional vector. </section>

<section id="fields">
<h2>Fields</h2>
<dl>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='Vector3::x'>x
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='Vector3::y'>y
</a></code></span>
</dt>
<dd>
</dd>
<dt>
<span class="field-type"><code><code><a href='num.html#num::num'>num</a></code></code></span>
<span class="field-name"><code><a name='Vector3::z'>z
</a></code></span>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="constructors">
<h2>Constructors</h2>
<dl>
<dt>
<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a>([<code><a href='num.html#num::num'>num</a></code> <a name='Vector3::::x'>x</a> = 0, <code><a href='num.html#num::num'>num</a></code> <a name='Vector3::::y'>y</a> = 0, <code><a href='num.html#num::num'>num</a></code> <a name='Vector3::::z'>z</a> = 0])</code>
</dt>
<dd>
</dd>
<dt>
<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a>.<a name='Vector3::copy'>copy</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::copy::argCopy'>argCopy</a>)</code>
</dt>
<dd>
</dd>
</dl>
</section>

<section id="methods">
<h2>Methods</h2>
<dl>
<dt>
<code><code><a href='bool.html#bool::bool'>bool</a></code> <a name='Vector3::6161'>==</a>(&lt;dynamic&gt; <a name='Vector3::6161::other'>other</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::add'>add</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::add::argVec'>argVec</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::addLocal'>addLocal</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::addLocal::argVec'>argVec</a>)</code></dt>
<dd>
</dd>
<dt>
<code>static <code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::cross'>cross</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::cross::a'>a</a>, <code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::cross::b'>b</a>)</code></dt>
<dd>
</dd>
<dt>
<code>static void <a name='Vector3::crossToOut'>crossToOut</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::crossToOut::a'>a</a>, <code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::crossToOut::b'>b</a>, <code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::crossToOut::out'>out</a>)</code></dt>
<dd>
</dd>
<dt>
<code>static <code><a href='num.html#num::num'>num</a></code> <a name='Vector3::dot'>dot</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::dot::a'>a</a>, <code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::dot::b'>b</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::mul'>mul</a>(<code><a href='num.html#num::num'>num</a></code> <a name='Vector3::mul::argScalar'>argScalar</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::mulLocal'>mulLocal</a>(<code><a href='num.html#num::num'>num</a></code> <a name='Vector3::mulLocal::argScalar'>argScalar</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::negateLocal'>negateLocal</a>()</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::setCoords'>setCoords</a>(<code><a href='num.html#num::num'>num</a></code> <a name='Vector3::setCoords::argX'>argX</a>, <code><a href='num.html#num::num'>num</a></code> <a name='Vector3::setCoords::argY'>argY</a>, <code><a href='num.html#num::num'>num</a></code> <a name='Vector3::setCoords::argZ'>argZ</a>)</code></dt>
<dd>
 Sets the vectors coordinate values to those given. </dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::setFrom'>setFrom</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::setFrom::argVec'>argVec</a>)</code></dt>
<dd>
 Sets this vector equal to the given vector. </dd>
<dt>
<code>void <a name='Vector3::setZero'>setZero</a>()</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::sub'>sub</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::sub::argVec'>argVec</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::subLocal'>subLocal</a>(<code><a href='Vector3.html#Vector3::Vector3'>Vector3</a></code> <a name='Vector3::subLocal::argVec'>argVec</a>)</code></dt>
<dd>
</dd>
<dt>
<code><code><a href='String.html#String::String'>String</a></code> <a name='Vector3::toString'>toString</a>()</code></dt>
<dd>
</dd>
</dl>
</section>

<footer></footer>

</body></html>
